package com.sfh.appversion.server.error;

import com.sfh.appversion.base.errorcode.IErrorCode;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum UserErrorCodeEnum implements IErrorCode{

    USER_NOEXITS_ERROR("U2001", "账号不存在或密码错误！"),
    USER_EXITS_ERROR("U2002", "账号已存在！"),
    CONFIGNOEXITS_ERROR("S2001", "配置项不存在！");

    /**
     * 错误码
     */
    private final String code;

    /**
     * 错误提示消息
     */
    private final String msg;


    @Override
    public String code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
